IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'spSetup_Create')
	BEGIN
		PRINT 'Dropping Procedure spSetup_Create'
		DROP  Procedure  spSetup_Create
	END

GO

PRINT 'Creating Procedure spSetup_Create'
GO
CREATE Procedure dbo.spSetup_Create
	( 	  
	  @SysAdmin2User_ID numeric(9,0) = null
	)
AS
  /* 
    ------------------------------------------------------------------------------
    - Change History
    - --------------
    - Date          Description
    ------------------------------------------------------------------------------
    - 2007/11/02    Initial version created
    ------------------------------------------------------------------------------
  */

	-- Declare the required variables

	-- Create the required new record
	INSERT INTO Setup
	  (
		SysAdmin2User_ID	  
	  )
	VALUES
	  (
		@SysAdmin2User_ID
	  )

	-- Handle any errors
	IF @@ERROR != 0
	BEGIN
		RAISERROR('spSetup_Create: Unable to Insert a new Setup', 10, 1)
		RETURN
	END

	-- Return the newly created ID
	SELECT	@@IDENTITY AS 'Setup_ID'

	-- Return to calling method
	RETURN 

GO
